package com.lyp.activitys;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.lyp.jsonbean.MyReportDetailsBean;
import com.tjl.yangxixis.R;
//销售员的报告详情
public class ReportDetailsyeActivity extends Activity {

    View v;
    private MyReportDetailsBean.DataBean mBean;
    private TextView mDindan,mName,mTime,mWanCheng,mQueren;
    private ImageView mBack;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.report);
        initview();
    }

    private void initview(){
        mBean = (MyReportDetailsBean.DataBean)getIntent().getExtras().get("databean");
        mBack = (ImageView) findViewById(R.id.reset_back);
        mDindan = (TextView) findViewById(R.id.report_dindan);
        mName = (TextView) findViewById(R.id.report_names);
        mTime = (TextView) findViewById(R.id.report_xiadantime);
        mWanCheng = (TextView) findViewById(R.id.report_wancheng);
        mQueren = (TextView) findViewById(R.id.report_queren);
        mDindan.setText(mBean.getOrder_number());
        mName.setText(mBean.getU_name());
        mTime.setText(mBean.getPay_time());
        mWanCheng.setText(mBean.getSingle_time());
        mQueren.setText(mBean.getWanorder_time());
        mBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

}
